import { BaseController } from '@cool-midway/core';
import { UserWxService } from '../../service/wx';
import { Body, Inject, Post } from '@midwayjs/core';

export class AdminWxController extends BaseController {
  @Inject()
  userInfoService: UserWxService;
  // 获取二维码
  @Post('/getQrCode')
  async getQrCode(@Body() param) {
    return this.ok(await this.userInfoService.getQrCode(param));
  }
}
